import type { SearchPageTypes } from '@/resources/interface/ResultTypes'

export interface MenuAddDTOType {
    name:string
    icon:string
    router:string
    type:number
    parentId:number
    status:number
    component:string
    sort:number
}

export interface MenuUpdateDTOType {
     id:number
     name:string
     icon:string
     router:string
     type:number
     parentId:number
     status:number
     component:string
     sort:number
}

export interface MenuSearchDTOType {
    page: SearchPageTypes
}

export interface MenuSearchVOType {
    id:number
    name:string
    icon:string
    router:string
    type:number
    parentId:number
    status:number
    component:string
    sort:number
    createTime:string
    updateTime:string
    createBy:string
    updateBy:string
}

export interface MenuTypes {
  id: string
  name: string
  router: string
  icon: string
  type: number
  component: string
  children?: MenuTypes[]
}
export interface MenuTreeListTypes {
  id: string
  name: string
  icon: string
  router?: string
  type: number
  parentNo?: string
  status: number
  component?: string
  isShow: number
  children?: MenuTreeListTypes[]
}
export interface MenuParentTypes {
  name: string
  id: number
}
export interface MenuTreeTypes{
  no: string,
  name: string,
  icon: string,
  children?: MenuTreeTypes[]
}
